package com.evildog.workspace.auth.grant;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@ApiModel(description = "认证请求参数")
@AllArgsConstructor
@NoArgsConstructor
@Data
public class GrantParameter {

    @ApiModelProperty(value = "授权类型", required = true,allowableValues = "refresh_token,password")
    private String grantType;

    @ApiModelProperty(value = "账号")
    private String account;

    @ApiModelProperty(value = "密码",notes = "前端密码需加密,默认密码1，md5后 c4ca4238a0b923820dcc509a6f75849b")
    private String password;

    @ApiModelProperty(value = "刷新令牌")
    private String refreshToken;

}
